package kaizone.haining.chaobohui.widget;

import kaizone.haining.chaobohui.R;
import kaizone.haining.chaobohui.util.ImageFetcher;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

public class FirstReadNearbyCellView extends LinearLayout{
    
    private TextView mNameTextView;
    private TextView mIntroTextView;
    private ImageView mPicImageView;
    
    public FirstReadNearbyCellView(Context context) {
        super(context);
        init();
    }

    public FirstReadNearbyCellView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    private void init() {

    }
    
    @Override
    protected void onFinishInflate() {
        super.onFinishInflate();
        mNameTextView = (TextView) findViewById(R.id.tv01);
        mIntroTextView = (TextView) findViewById(R.id.tv02);
        mPicImageView = (ImageView) findViewById(R.id.img);
    }
    
    public void setName(String name){
        mNameTextView.setText(name);
    }
    
    public void setIntro(String intro){
        mIntroTextView.setText(intro);
    }
    
    public void loadImage(ImageFetcher imageFetcher, String url){
        imageFetcher.loadImage(url, mPicImageView);
    }


}
